{% extends 'learning_logs/base.html' %}
{% block header %}
    <h2>
        {{ job }}
    </h2>
{% endblock header %}

{% block content %}

    <p>
        <a href="{% url 'ETP:product' product %}">返回<<</a>
        &nbsp;&nbsp;&nbsp;
        <a href="{% url 'ETP:new_suite' job.id %}">新增Suite</a>

    </p>

    <table class="table table-bordered">
        <thead class="">
            <tr>
                <th>Suite名称</th>
                <th>简介</th>
                <th>创建者</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for suite in suites %}
                <tr>
                    <td>{{ suite.name }}</td>
                    <td>{{ suite.description }}</td>
                    <td>{{ suite.creater }}</td>
                    <td>{{ suite.create_time|date:'Y-n-d H:i ' }}</td>
                    <td>
                        <a href="{% url 'ETP:suite' suite.id %}">详情</a>
                        <a href="{% url 'ETP:edit_suite' suite.id%}">修改</a>
                        <a href="{% url 'ETP:delete_suite' suite.id%}">删除</a>
                        <a href="{% url 'ETP:run_suite' suite.id %}">一次运行</a>
                        <a>调度配置</a>
                    </td>
                </tr>
            {% endfor%}
        </tbody>
    </table>

{% endblock content %}